package com.wangsd.web.coupon.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wangsd.web.coupon.entity.BigWheel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangsd.web.coupon.entity.Company;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author generator
 * @since 2019-10-22
 */
public interface BigWheelMapper extends BaseMapper<BigWheel> {

    IPage<BigWheel> selectListXml(Page<BigWheel> page, @Param("code") String code, @Param("bigWheel") BigWheel bigWheel);


    @Update("update big_wheel set status = #{status} where company_id = #{companyId}")
    int updateStatusByCompanyId(@Param("companyId") Long companyId, @Param("status") Integer status);

}
